# 轻量化景点数据表
POI_DATA = [
    {"name": "海口火山口国家地质公园", "lat": 19.968056, "lng": 110.271389},
    {"name": "骑楼老街（中山路）", "lat": 20.044722, "lng": 110.343056},
    {"name": "万绿园", "lat": 20.039722, "lng": 110.320000},
    {"name": "假日海滩", "lat": 20.039444, "lng": 110.227778},
    {"name": "白沙门公园", "lat": 20.060833, "lng": 110.355000},
    {"name": "雷琼世界地质公园（海口园区）", "lat": 19.968056, "lng": 110.271389},
    {"name": "海口钟楼", "lat": 20.048056, "lng": 110.346111},
    {"name": "秀英炮台", "lat": 20.016111, "lng": 110.290556},
    {"name": "海口世纪大桥", "lat": 20.041389, "lng": 110.330833},
]

def get_poi_by_name(query):
    """
    根据查询名称匹配景点信息
    :param query: 查询关键词
    :return: 匹配的景点信息列表
    """
    matched_pois = []
    for poi in POI_DATA:
        if query in poi["name"]:
            matched_pois.append({
                "name": poi["name"],
                "location": f"{poi['lng']},{poi['lat']}",
                "duration": 0  # 默认值
            })
    return matched_pois

# 该文件无需修改，未直接使用密钥
